Skip to content

Let menu select confirm a pick in place - #18956

Open
charlielockyer-rice wants to merge 2 commits into
omacom:quattrofrom
charlielockyer-rice:menu-select-confirm
Open

charlielockyer-rice wants to merge 2 commits into
omacom:quattrofrom
charlielockyer-rice:menu-select-confirm

Conversation

@charlielockyer-rice

@charlielockyer-rice charlielockyer-rice commented Nov 14, 2026 •

Copy link
Copy Markdown

Note

Written by Claude Opus 5.5 (claude-opus-5-5) on behalf of Charlie

omarchy-menu-select … -- --confirm <message> [--confirm-label <text>] opens the menu's existing Cancel/Confirm prompt over the list when a row is picked, instead of returning. An "are you sure?" step no longer closes and reopens the menu. %1 in the message is the picked label, and Cancel starts focused. It can't be combined with --multiple.

  • Each prompt is tied to the request that opened it. A new request arriving while the prompt is open closes it, so an old pick never answers a new caller.
  • Cancel, Escape or a click outside the prompt goes back to the list, keeping the search and keyboard focus. The Apps menu's uninstall prompt (same dialog) still closes the whole menu on a click past its edge, as before.
  • Confirm buttons size to their labels, never narrower than before. On a narrow card the longer label is cut short with "…" instead of overlapping.

Tests: menu-test.sh covers the payload and the --multiple rejection. The new menu-select-confirm-test.sh (exclusive) drives the real menu through confirming, Cancel/Escape/outside click, search and focus being kept, a stale prompt not answering a new request, narrow buttons, and the uninstall prompt's outside click.

Note: open PR #18024 (headings) touches the same files (bin/omarchy-menu-select, docs/menu.md, Menu.qml, menu-test.sh). Whichever lands second will need a small rebase.

🤖 Generated with Claude Code

With -- --confirm <message> (and --confirm-label), choosing a row opens the
menu's existing Cancel/Confirm prompt over the list instead of returning, so
an "are you sure?" step no longer closes and reopens the menu. %1 in the
message is the picked label, and Cancel starts focused.

The prompt belongs to the request it was asked in: a new request summoned
while it is open closes it, so it never returns the old pick to the new
caller. Cancel, Escape or a click outside it goes back to the list with the
search and keyboard focus kept. The Apps menu's uninstall prompt, the same
dialog, keeps closing the whole menu on a click past its edge.

Confirm buttons size to their labels, at least the old width, and the
longer one elides when a narrow card can't hold both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5 · Move the fixture runner into the existing menu test before merging to satisfy the repository's test-layout requirement.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR reaches the select-menu flow and shared confirmation dialogs across several screens.

Move the fixture runner into the existing menu test before merging to satisfy the repository's test-layout requirement.

Findings

  1. P2 Menu tests are split ▶

Summary

Adds an in-place confirmation prompt for single menu picks.

  • Picked rows can be confirmed before the menu returns them.
  • Confirmation buttons fit longer labels without overlapping.

Reviews (3) · Last reviewed commit: "Send real key presses in the menu select..." · Reviewed by Greptile

Calling the dialog's handleKey() skipped the search line and the key
catcher, so the fixture passed even if Escape or Enter stopped reaching the
prompt. Press the keys in the menu's window instead, and check that Enter
takes the focused Cancel back to the list with no pick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the enhancement New feature or request label Nov 17, 2026
printf '#!/bin/bash\nexit 0\n' >"$QML_FIXTURE_TMP/bin/omarchy-shell"
chmod +x "$QML_FIXTURE_TMP/bin/omarchy-shell"

run_qml_fixture menu-select-confirm "menu select confirms a pick in place, and the Apps menu's uninstall prompt still closes on an outside click" Ui Commons

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Menu tests are split

The new menu-select-confirm-test.sh adds a separate test entry point even though menu-test.sh already covers this feature. AGENTS.md requires extending the area's existing test file rather than adding another *-test.sh. Keep the QML fixture, but run it from the existing menu test before merging.

File Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants